import httpInstance from "@/utils/http";
// 获取轮播图列表数据
// 如果传入参数则获取对应分类的轮播图 “2”，不传则获取首页轮播图,默认为“1”
export const getBanner = (distributionSite) => {
  return httpInstance.get('/home/banner',{
    params:{
      distributionSite: distributionSite || '1'  // 1-首页轮播  2-分类轮播
    }
  })
}
// 获取新鲜好物数据
export const getNew = () => {
  return httpInstance.get('/home/new')
}
// 获取人气推荐数据
export const getHot = () => {
  return httpInstance.get('/home/hot')
}
// 获取商品列表数据
export const getProduct = () => {
  return httpInstance.get('/home/goods')
}